package 行为型模式.中介者模式;

//具体同事角色类
public class HouseOwner extends Person{
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }

    //和中介联系沟通的方法
    public void connect(String msg){
        mediator.connect(msg,this);
    }

    //获取信息的方法
    public void getMsg(String msg){
        System.out.println("房主"+name+"获取到的信息是"+msg);
    }
}
